package staticinnerclass;

/**
 * 不依赖外部类类对象,可直接创建或通过类名访问, 可声明静态成员
 */
public class TestStaticClass1 {
    public static void main(String[] args) {

        System.out.println(Out.In.b);
    Out.In in =new Out.In();
    in.m2();
    }

}

class Out{
    static  int a =10;
            String s ="hello";
    //静态内部类
    static  class In{
        static  int b=20;
    public void m2(){
        System.out.println(Out.a);
        System.out.println("Inn.m2()");
      //  System.out.println(Out.s);
    }
    }
}